package thread.threaddemo;

import java.time.LocalDateTime;
import java.util.concurrent.TimeUnit;

/**
 * @Author: wenjingyuan
 * @Date: 2022/11/12/10:03
 * @Description:TimeUnit方法
 */
public class ThreadTimeUnit {
    public static void main(String[] args) throws InterruptedException {
        System.out.println("主线程开始执行了："+ LocalDateTime.now());
        TimeUnit.DAYS.sleep(1);
        Thread.sleep(1000*60*60*24);
    }
}